package com.jiyun.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author usian
 * @since 2022-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("th_contract")
@ApiModel(description="")
public class ThContract implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关键字
     */
    @ApiModelProperty(value = "关键字")
    @TableField("keyword")
    private String keyword;

    /**
     * 合同名称
     */
    @ApiModelProperty(value = "合同名称")
    @TableField("contract_name")
    private String contractName;

    /**
     * 签约时间
     */
    @ApiModelProperty(value = "签约时间")
    @TableField("signing_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern ="yyyy-MM-dd" )
    private Date signingTime;

    /**
     * 到期时间
     */
    @ApiModelProperty(value = "到期时间")
    @TableField("expiration_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern ="yyyy-MM-dd" )
    private Date expirationTime;

    /**
     * 归属门店
     */
    @ApiModelProperty(value = "归属门店")
    @TableField("belonging_store")
    private String belongingStore;

    /**
     * 甲方
     */
    @ApiModelProperty(value = "甲方")
    @TableField("party_a")
    private String partyA;

    /**
     * 乙方
     */
    @ApiModelProperty(value = "乙方")
    @TableField("party_b")
    private String partyB;


}
